constraint-editor: Fix creating constant constraints
authorMatthias Clasen <mclasen@redhat.com>
Wed, 18 Nov 2020 04:15:51 +0000 (23:15 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 18 Nov 2020 04:16:57 +0000 (23:16 -0500)
commit36ef94b002ace20f4a8665b2f15b59f98983add7
treeeb8d43a62ae7b18a85d50f27eee862ad59e4436e
parent831ebe3ef26ee9069edc8f6162353273eb4dbc43
constraint-editor: Fix creating constant constraints

We were not making the button sensitive in the case
of a constant constraint, and we were not properly
creating constant constraints either.
demos/constraint-editor/constraint-editor-window.c
demos/constraint-editor/constraint-editor.c
demos/constraint-editor/constraint-editor.ui